/**
 * Filename TestData.java 2021年01月13日
 * Copyright © Ehome Co.Ltd. All Rgiths Reserved.
 *
 * @author wuyingchao
 */
package com.ehome.poct.core.api.dto;

import cn.hutool.core.lang.Validator;
import com.ehome.poct.core.api.dto.check.gold.TestConfPoctStripMappingDTO;
import com.ehome.poct.core.api.dto.check.gold.TestConfPoctStripTypeDTO;
import com.ehome.poct.core.api.dto.check.gold.TestDataDetailDTO;
import lombok.Data;

/**
 * 检测数据
 *
 * @author wyc
 * @date 2021/01/13 15:07
 **/
@Data
public class TestDataDTO extends TestDataDetailDTO {
    private TestConfPoctStripTypeDTO stripType;
    private TestConfPoctStripMappingDTO stripMapping;

    public Boolean isMultiValue() {
        return Validator.isNotNull(getValue2()) && getValue2().doubleValue() > 0;
    }

    public Boolean isOldData() {
        return  Long.valueOf(136).equals(getCreateBy());
    }
}